/*    */ package com.lmpop.createIndex.search;
/*    */ 
/*    */ import com.lmpop.createIndex.searchModel.Queue;
/*    */ import com.lmpop.createIndex.searchModel.QueueValue;
/*    */ import com.lmpop.createIndex.searchModel.SearchData;
/*    */ import com.lmpop.createIndex.searchModel.SearchModel;
/*    */ import java.io.IOException;
/*    */ import java.util.ArrayList;
/*    */ import java.util.List;
/*    */ 
/*    */ public class ListadvIndexFiles
/*    */ {
/*    */   public ProperUtil properUtil;
/*    */   private String file_path;
/*    */ 
/*    */   public ListadvIndexFiles()
/*    */   {
/* 19 */     this.properUtil = new ProperUtil();
/* 20 */     this.file_path = this.properUtil.getFilePathByModel("listadv");
/*    */   }
/*    */ 
/*    */   public List getListadvList(String adv_rang, String key_words, String key_type) throws IOException {
/* 24 */     if ((adv_rang.equals("")) && (key_words.equals(""))) return null;
/* 25 */     SearchData search = new SearchData();
/* 26 */     ArrayList paraList = new ArrayList();
/* 27 */     if (!key_words.equals(""))
/* 28 */       paraList.add(new SearchModel("0", "key_words", key_words));
/*    */     else {
/* 30 */       paraList.add(new SearchModel("0", "adv_rang", adv_rang));
/*    */     }
/* 32 */     paraList.add(new SearchModel("0", "key_type", key_type));
/* 33 */     Queue queue = new Queue(new QueueValue[] { new QueueValue("adv_post", 2, true) });
/* 34 */     return search.getSearchInfo(this.file_path, paraList, queue);
/*    */   }
/*    */ }

/* Location:           F:\电商\commons-utils.jar
 * Qualified Name:     com.lmpop.createIndex.search.ListadvIndexFiles
 * JD-Core Version:    0.6.0
 */